﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace INSTA.Concepts.StrategyPattern
{
    public class Player
    {
        public int LifePoints   { get; set; }
        public int AttackPoints { get; set; }

        public void RunStrategy(AbstractStrategy<Player> strategy )
        {
            strategy.Execute(this);
        }



        public void Attack()
        {
            Console.WriteLine("Attack !!"  );
        }

        public void RunAway()
        {
            Console.WriteLine("Take your things and run !!"  );
        }
    }
}
